package com.sky.yipinyoufujava.service;

import com.sky.yipinyoufujava.pojo.from.ShopsFrom;
import com.sky.yipinyoufujava.pojo.goods.*;
import com.sky.yipinyoufujava.pojo.from.GoodsForm;
import com.sky.yipinyoufujava.pojo.goodsType.FirstGoodsType;
import com.sky.yipinyoufujava.pojo.goodsType.SecondGoodsType;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface GoodsService {
    List<Goods> getGoods(GoodsForm goodsForm);

    @Transactional
    void insertGoods(Goods goods);

    @Transactional
    void updateGoods(Goods goods);

    void deleteGoods(List<Short> ids);

    Goods getGoodsInfo(Object goodsId);

    List<GoodsPoster> getGoodsPoster(Object goodsId);

    List<GoodsImage> getGoodsImage(Object goodsId);

    List<Goods> getExplosion();

    List<Goods> getGoodsList();


    List<FirstGoodsType> getFirstGoodsTypes();

    List<SecondGoodsType> getSecondGoodsType(Integer id);

    Shops getGoodsShops(Object goodsId);

    List<GoodsComment> getGoodsComment(Object goodsId);

    List<GoodsLabel> getGoodsLabel(int id);

    List<GoodsScoreImage> getGoodsCommentImage(int id);

}
